Skip to content

TaskSignalSubscription class

Defined in

Namespace: ReactiveUI.Primitives.Async.Advanced Assembly: ReactiveUI.Primitives.Async.Core.dll Full name: ReactiveUI.Primitives.Async.Advanced.TaskSignalSubscription<T> Modifiers: public abstract

Summary

View source

        Represents an asynchronous subscription that can be cancelled and disposed, managing the lifecycle of an
        observer and its associated operations.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class TaskSignalSubscription~T~
class IAsyncDisposable {
    <>
}
IAsyncDisposable <|.. TaskSignalSubscription~T~

Implements: IAsyncDisposable

Remarks

This type provides a base for implementing cancellable, asynchronously disposable subscriptions that coordinate observer notifications and resource cleanup. Disposal cancels any ongoing operations and ensures that all resources are released before completion. Derived classes should implement the core execution logic in ExecuteAsyncCore.

Constructors

NameSummary
.ctorRepresents an asynchronous subscription that can be cancelled and disposed, managing the lifecycle of an observer and its associated operations.

Methods

NameSummary
StartStarts the operation synchronously using the current cancellation token.
DisposeAsyncAsynchronously releases the resources used by the object and cancels any ongoing operations.
ExecuteAsyncCoreWhen overridden in a derived class, executes the core subscription logic asynchronously.
Inherited members